.class Lcom/bigtincan/android/adfree/Common$5;
.super Ljava/lang/Object;
.source "Common.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/bigtincan/android/adfree/Common;->showAuth()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/bigtincan/android/adfree/Common;

.field private final synthetic val$v:Landroid/view/View;


# direct methods
.method constructor <init>(Lcom/bigtincan/android/adfree/Common;Landroid/view/View;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/bigtincan/android/adfree/Common$5;->this$0:Lcom/bigtincan/android/adfree/Common;

    iput-object p2, p0, Lcom/bigtincan/android/adfree/Common$5;->val$v:Landroid/view/View;

    .line 840
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4
    .parameter "dialog"
    .parameter "whichButton"

    .prologue
    .line 844
    iget-object v2, p0, Lcom/bigtincan/android/adfree/Common$5;->val$v:Landroid/view/View;

    const v3, 0x7f050001

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    .line 845
    .local v1, un:Ljava/lang/String;
    iget-object v2, p0, Lcom/bigtincan/android/adfree/Common$5;->this$0:Lcom/bigtincan/android/adfree/Common;

    const-string v3, "username"

    invoke-virtual {v2, v3, v1}, Lcom/bigtincan/android/adfree/Common;->SetStringPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 846
    iget-object v2, p0, Lcom/bigtincan/android/adfree/Common$5;->val$v:Landroid/view/View;

    const v3, 0x7f050003

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    .line 847
    .local v0, pw:Ljava/lang/String;
    iget-object v2, p0, Lcom/bigtincan/android/adfree/Common$5;->this$0:Lcom/bigtincan/android/adfree/Common;

    const-string v3, "password"

    invoke-virtual {v2, v3, v0}, Lcom/bigtincan/android/adfree/Common;->SetStringPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 849
    iget-object v2, p0, Lcom/bigtincan/android/adfree/Common$5;->this$0:Lcom/bigtincan/android/adfree/Common;

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Lcom/bigtincan/android/adfree/Common;->UpdateServerVer(Z)J

    .line 851
    iget-object v2, p0, Lcom/bigtincan/android/adfree/Common$5;->this$0:Lcom/bigtincan/android/adfree/Common;

    invoke-static {v2}, Lcom/bigtincan/android/adfree/Common;->access$3(Lcom/bigtincan/android/adfree/Common;)Landroid/os/Handler;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 852
    return-void
.end method
